package com.hpjpw.ido.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 撕逼墙的评论对象 ido_anonymous_comment
 * 
 * @author hpj
 * @date 2021-01-02
 */
@ApiModel("AnonymousCommentDomain")
public class AnonymousComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("ID")
    private Long id;

    /** 所评论的动态ID */
    @Excel(name = "所评论的动态ID")
    @ApiModelProperty("所评论的动态ID")
    private Long momentId;

    /** 评论内容 */
    @ApiModelProperty("所评论的动态ID")
    private String content;

    /** 发表评论者ID */
    @Excel(name = "发表评论者ID")
    @ApiModelProperty("发表评论者ID")
    private Long fromId;

    /** 被评论者ID */
    @Excel(name = "被评论者ID")
    @ApiModelProperty("被评论者ID")
    private Long toId;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("评论时间")
    private Date time;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMomentId(Long momentId) 
    {
        this.momentId = momentId;
    }

    public Long getMomentId() 
    {
        return momentId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setFromId(Long fromId) 
    {
        this.fromId = fromId;
    }

    public Long getFromId() 
    {
        return fromId;
    }
    public void setToId(Long toId) 
    {
        this.toId = toId;
    }

    public Long getToId() 
    {
        return toId;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("momentId", getMomentId())
            .append("content", getContent())
            .append("fromId", getFromId())
            .append("toId", getToId())
            .append("time", getTime())
            .toString();
    }
}
